/*
 * @Description: In User Settings Edit
 * @Author: your name
 * @Date: 2019-07-21 21:38:13
 * @LastEditTime: 2019-11-04 17:18:47
 * @LastEditors: Please set LastEditors
 */
// 引入组件
import * as allModule from '../app.module.js'

// import UserRouter from './user'

const routes = [
  { path: '/', name: 'home', redirect: '/index' },
  { path: '/login', name: 'login', component: allModule.Login },
  { path: '/regist', name: 'regist', component: allModule.Regist },
  {
    path: '/admin',
    component: allModule.Admin,
    children: [
      { path: 'map', component: allModule.Map },
      { path: 'blogAdd', component: allModule.BlogAdd }
    ]
  },
  { path: '/index', component: allModule.Index },
  { path: '/ueditor', component: allModule.Ueditor },
  { path: '/newsDetail', component: allModule.NewsDetail },
  { path: '*', component: allModule.NotFound }
]
export default routes
